package com.example.demo.service.impl;

import com.example.demo.mapper.PetsMapper;
import com.example.demo.mapper.SellerMapper;
import com.example.demo.pojo.Pets;
import com.example.demo.pojo.Seller;
import com.example.demo.service.ISellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SellerServiceImpl implements ISellerService {
	@Autowired
	SellerMapper sellerMapper;
	@Override
	public List<Seller> findByID(Integer sellerID) {
		return sellerMapper.findByID(sellerID);
	}

	@Override
	public List<Seller> findAll() {
		return sellerMapper.findAll();
	}

	@Override
	public List<Seller> findBygoodsID(Integer goodsID) {
		return sellerMapper.findBygoodsID(goodsID);
	}
}
